package models

type SysQuestionBankWare struct {
	Model
	QuestionBankId            int    `json:"question_bank_id" gorm:"type:int(10);not null;comment:关联ID"`
	Name                      string `json:"name" gorm:"type:varchar(50);comment:题库章节名称"`
	QuestionBankWare          string `json:"question_bank_ware" gorm:"type:varchar(255);comment:题库章节url"`
	Pid                       int    `json:"pid" gorm:"tinyint(1);comment:父级ID"`
	Level                     int    `json:"level" gorm:"tinyint(1);comment:等级"`
	Sort                      int    `json:"sort" gorm:"tinyint(1);comment:排序"`
	Count                     int    `json:"count" gorm:"smallint(5);default:0;comment:子章节练习题总数"`
	SingleChoiceCount         int    `json:"single_choice_count" gorm:"type:int(5);default:0;comment:单选总数"`
	MultipleChoiceCount       int    `json:"multiple_choice_count" gorm:"type:int(5);default:0;comment:多选总数"`
	JudgmentQuestionCount     int    `json:"judgment_question_count" gorm:"type:int(5);default:0;comment:判断题总数"`
	ApplicationQuestionsCount int    `json:"application_questions_count" gorm:"type:int(5);default:0;comment:应用题总数"`
	IsContainExercise         int    `json:"is_contain_exercise" gorm:"type:tinyint(2);default:-1;comment:题库是否存在习题"`
	IsFree                    int    `json:"is_free" gorm:"type:tinyint(1);comment:是否付费公开范围"`
	IsShow                    int    `json:"is_show" gorm:"type:tinyint(2);default:0;comment:是否显示"`
	ControlBy
	ModelTime
}

func (s SysQuestionBankWare) TableName() string {
	return "sys_exercises_ware"
}
